//
//  DataBase_Bookmark.h
//  USB_Reader
//
//  Created by xiaozao on 15/3/30.
//  Copyright (c) 2015年 Tony_Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>


@class MainBookmark;

@interface DataBase_Bookmark : NSObject


{
    // 数据库文件指针, 可以通过它读取本地的数据库文件
    sqlite3 *dbPoint;
}

- (BOOL) openDB;
- (BOOL) closeDB;
- (BOOL) createBookMarkTabel;
- (BOOL) updateBookmark:(MainBookmark *)Bookmark;
- (BOOL) insertBookmark:(MainBookmark *)Bookmark;
- (BOOL) deleteBookmark:(MainBookmark *)Bookmark;
- (NSMutableArray *)selectAllBookmark;
- (BOOL)isContainBookmark:(MainBookmark *)Bookmark;

// 单例
+(DataBase_Bookmark *)shareInstance;





@end
